package com.analyse.stock.service;

import com.analyse.stock.enums.Sentiment;
import com.analyse.stock.model.BoardIndexDailyModel;
import com.baomidou.mybatisplus.extension.service.IService;
import org.ta4j.core.indicators.SMAIndicator;

public interface IBoardIndexDaily extends IService<BoardIndexDailyModel> {
    Integer pullBoardDailyList(String boardCodes);

    Integer pullIndexDailyList(String indexCodes);

    /**
     * 获取指数的5日均值
     */
    SMAIndicator getIndexSMAValue(String code, Integer codeType,Integer day, String startDate);

    /**
     * 分析市场情绪
     */
    Sentiment sentimentAnalyzer(String code, Integer codeType);
}
